from manim import *


class DifferentRotations(Scene):
    def construct(self):
        left_square:Square = Square(color=BLUE, fill_opacity=0.7).shift(2*LEFT)
        right_square:Square = Square(color=GREEN, fill_opacity=0.7).shift(2*RIGHT)

        self.play(
            left_square.animate.rotate(angle=PI),
            Rotate(mobject=right_square ,angle=PI),
            run_time=2
        )
        self.wait()


